package core.actions;

import java.awt.Point;

import core.*;
import core.units.Unit;


public class OrderAllMove extends Action {
	
	public OrderAllMove(){
		super();
		name="Move_Units";
		imageName="iconMoveBlue.png";
		nameChar='m';
		needDir=true;
		needPos=true;
		range = 600000;
		value=0;
	}
	
	public void execute(){
		//Player master = PlayerIdHandler.getPlayer(masterId);
		for(Unit u : main.getUnits(master)){
			u.setTarget(CustomUtil.pointOffset(inputPoint, 50));
		}
		hasPos=false;
		hasDir=false;
	}
}